﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;

namespace ST.Common.Util.Model
{
    /// <summary>
    /// ZTree条目
    /// </summary>
    public class ZTreeItem
    {
        public string id { get; set; }

        public string pId { get; set; }

        public string name { get; set; }

        public bool open { get; set; }

        public string code { get; set; }

        [JsonIgnore]
        public string iconOpen { get; set; }

        [JsonIgnore]
        public string iconClose { get; set; }

        [JsonIgnore]
        public string icon { get; set; }

        [JsonIgnore]
        public bool isParent { get; set; }

        /// <summary>
        /// 节点是否不可点击
        /// </summary>
        public bool noClick { get; set; }

        [JsonIgnore]
        public string url { get; set; }

        /// <summary>
        /// 目标（_blank）
        /// </summary>
        [JsonIgnore]
        public string target { get; set; }

        //public string font{get;set;}font:{'background-color':'black', 'color':'white'}

        //public bool checked{get;set;}//true,false
    }
}
